﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="EZCRS.HCMS.Web.manage.setup.company" Codebehind="company.aspx.cs" %>

<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title></title>

   <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>  
   <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>
     
    
     
</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
        <uc2:titlepage id="Titlepage1" runat="server" inittitle="公司渠道管理"></uc2:titlepage>
        
        <table class="main-table"  cellpadding="1" cellspacing="1">
                        
            <tr class="line-even">
                <td style="text-align: right">
                    公司编号：</td>
                <td style="text-align: left;">
                    &nbsp;<cc2:WebTextBox ID="companycode" runat="server" CssClass="text-line" Width="150px"></cc2:WebTextBox></td>
                <td style="text-align: right">
                    公司简称：</td>
                <td style="text-align: left"><cc2:WebTextBox ID="companyname" runat="server" 
                        CssClass="text-line" Width="150px"></cc2:WebTextBox>
                    </td> 
                <td style="text-align: left">
&nbsp;<asp:Button  ID="BtnSearch"  runat="server" CssClass="bttn" OnClientClick="javascript:Page_Load('Search');return false;" Text="<%$ Resources:Site, ButtonSearch %>" />
                </td>
            </tr>
        </table>
        <br />
        
    
  <uc1:jspage id="Jspage1" runat="server"></uc1:jspage><input type="hidden" id="orderkey" value="0" /><input type="hidden" id="txt_sql" value="" />
   <script type="text/javascript">
   
    function Page_Load(pageindex)
    {//debugger
        var strcompanycode=$F("companycode").value;
        var strcompanyname=$F("companyname").value;
        pageindex=pageIndexSetting(pageindex);    //pageindex的设定
        EZCRS.HCMS.myajax.AjaxBaseInfo.getbasecompany(pageindex, strcompanycode,strcompanyname,setTable);
        pageLastSetting("",pageindex);     //最后的赋值
       
    }
    
    function del(obj)
    {
      if(confirm("是否要删除？"))
      {
        var delid=obj.parentNode.parentNode.cells[0].innerHTML;
        EZCRS.HCMS.myajax.AjaxBaseInfo.delbasecompany(delid,function(resp){if(resp.value=="1"){alert('删除成功！');obj.parentNode.parentNode.style.display='none';}else{alert('删除失败！');}});
      }
      
    }
    
    AjaxPro.timeoutPeriod = 40000;
    var l = $F("loadinfo");
    
    AjaxPro.onError = function(e) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    } 
    AjaxPro.onTimeout = function(t) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    }
    
   </script>

    
   
    </form>
  
    
   
</body>
</html>




